export interface HttpResponse<D = {}> {
  statusCode: number
  data: {
    code: number
    data: D;
    message: string
  },
  errMsg: string
}

export type ParamsType<T = {}> = T;

export interface RequestConfig<H = {}> {
  url: string;
  method:
    | "OPTIONS"
    | "GET"
    | "HEAD"
    | "POST"
    | "PUT"
    | "DELETE"
    | "TRACE"
    | "CONNECT";
  header?: H;
  data?: ParamsType;
}
